import React from "react";
import { useLocation } from "react-router-dom";

export default function Params() {
  const {
    state: { id, content },
  } = useLocation();

  return (
    <>
      <ul>
        <li>{id}</li>
        <li>{content}</li>
      </ul>
    </>
  );
}
